package com.george.stock.service.impl;

import com.george.stock.service.StockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Create By George on /2023/4/10
 * description: 库存服务接口实现
 *
 * @author George
 */
@Slf4j
@Service
public class StockServiceImpl implements StockService {

    /**
     * 根据订单生成出库单
     *
     * @param orderId
     * @return void
     * @author George
     * @date 2023/4/10 1:14
     */
    @Override
    public void outStock(String orderId) {
        log.info("根据订单号生成出库单，订单号：{}", orderId);
        System.out.println("订单：" + orderId + "生成出库单成功");
    }
}
